import React from 'react';
import utils from '@/utils/index';
import { WebView } from '@tarojs/components';
import { customeAppId } from '@/src/config';
let gameUrl = 'https://m.game.mirongyun.com'
import './index.scss';

const Game = () => {
  const token = utils.getToken();
  const channel = process.env.TARO_ENV === 'h5' ? CHANNEL_H5 : CHANNEL_MINI;
  let url = gameUrl + '?token=' + token + '&channel=' + channel + '&sassAppId=' + customeAppId;
  return <WebView src={url} />;
};

export default Game;
